package classmate.po;

import java.io.Serializable;
import java.util.Date;

public class Student implements Comparable<Object>,Serializable{
	private static final long serialVersionUID = 1L;
	private long id;
	private String name;
	private Date birthday;
	private String phoneNumber;
	private String email;
	private String nativePlace;
	private String address;
	private int roomNo;
	private String roomName;
	private Room room = new Room(roomNo,roomName);
	public Student() {
		super();
	}
	
	public Student(long id, String name, Date birthday, String phoneNumber, String email, String nativePlace,
			String address,int roomNo) {
		super();
		this.id = id;
		this.name = name;
		this.birthday = birthday;
		this.phoneNumber = phoneNumber;
		this.email = email;
		this.nativePlace = nativePlace;
		this.address = address;
		this.roomNo = roomNo;
	}

	public Student(long id, String name, Date birthday, String phoneNumber, String email, String nativePlace,
			String address,Room room) {
		super();
		this.id = id;
		this.name = name;
		this.birthday = birthday;
		this.phoneNumber = phoneNumber;
		this.email = email;
		this.nativePlace = nativePlace;
		this.address = address;
		this.room = room;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhonenumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getNativePlace() {
		return nativePlace;
	}
	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	public Room getRoom() {
		return room;
	}
	public int getRoomNo() {
		return roomNo;
	}

	public void setRoomNo(int roomNo) {
		this.roomNo = roomNo;
	}

	public void setRoom(Room room) {
		this.room = room;
	}
	
	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", birthday=" + birthday + ", phoneNumber=" + phoneNumber
				+ ", email=" + email + ", nativePlace=" + nativePlace + ", address=" + address + ", room=" + room + "]";
	}
	@Override
	public int compareTo(Object o) {
		// TODO 自动生成的方法存根
		return 0;
	}
}
